import Vue from 'vue'
import VueRouter from 'vue-router'
import { ROUTE_LOGIN } from '@/common/const'

const LoginIndex = () => import(/* webpackChunkName: 'LoginIndex' */ '@/module/pages/login-index/login-index')
const RegIndex = () => import(/* webpackChunkName: 'RegIndex' */ '@/module/pages/login-reg/login-reg')

Vue.use(VueRouter)

const routes = [
  { path: '/', component: LoginIndex, name: ROUTE_LOGIN.INDEX },
  { path: '/reg', component: RegIndex, name: ROUTE_LOGIN.REG }
]

const router = new VueRouter({ routes })

export default router
